# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-input-elographics/xf86-input-elographics-1.1.0.ebuild,v 1.8 2006/10/13 23:15:49 joshuabaergen Exp $

# Must be before x-modular eclass is inherited
#SNAPSHOT="yes"

inherit x-modular

SRC_URI="http://stz-softwaretechnik.com/~ke/touchscreen/xf86-input-evtouch-0.8.7.tar.bz2"
DESCRIPTION="Elographics input driver"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd"
RDEPEND=">=x11-base/xorg-server-1.0.99"
DEPEND="${RDEPEND}
	x11-proto/inputproto
	x11-proto/randrproto
	x11-proto/xproto"

src_unpack() {
	unpack ${A}
	
	epatch ${FILESDIR}/${PN}-0.8.7-add_swap_xy_feature.patch
}

src_compile() {
	econf --enable-evcalibrate || die "./configure failed"
	emake CFLAGS="${CFLAGS}" || die
}

src_install() {
	x-modular_src_install

	insinto /etc/udev/rules.d
	doins 69-touchscreen.rules
	
        dodoc NEWS README* AUTORS COPYING
}
